﻿#ifndef HOTELCERTMODEL_H
#define HOTELCERTMODEL_H

#include <QAbstractTableModel>
#include "globalvars.h"

class HotelCertModel : public QAbstractTableModel
{
    Q_OBJECT
signals:

public:
    explicit HotelCertModel(QObject *parent = nullptr);

    virtual int rowCount(const QModelIndex &parent= QModelIndex()) const;
    virtual int columnCount(const QModelIndex &parent= QModelIndex()) const;
    QVariant data(const QModelIndex &index, int role) const;
    QVariant headerData(int section, Qt::Orientation orientation, int role) const;

    void refrushModel();
    const QString& getHotelID(int index);
public slots:

private:
    QStringList m_header;
};

#endif // HOTELCERTMODEL_H
